<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html SYSTEM "http://www.thymeleaf.org/dtd/xhtml1-strict-thymeleaf-spring4-4.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">
<head>
	<script type="text/javascript" src="/deng/include/include-css.js"></script>
	<link href="/deng/source/css/bootlist.css" rel="stylesheet" type="text/css" />
	<title>数据字典</title>
	<style>
		.table>thead:first-child>tr:first-child>th p{
			text-align:left;
			font-weight:normal;
		}
		.table>tbody>tr>td {
			text-align:left;
		}
		.fixed-table-container .bs-checkbox {
			text-align:left;
		}
		</style>
	</head>
<body> 
	<div class="m-content">
		<div class="m-portlet">
			<div class="m-portlet__head">
				<div class="m-portlet__head-caption">
					<div class="m-portlet__head-title">
						<h3 class="m-portlet__head-text">
							<span class="m-accordion__item-icon"><i class="flaticon-exclamation-1"></i>数据字典</span>
						</h3>
					</div>
				</div>
			</div>
			<!--begin::Form-->
			<form class="m-form m-form--fit m-form--label-align-left m-form--group-seperator-dashed " method="POST" id="searchForm">
	            <div class="m-portlet__foot m-portlet__no-border m-portlet__foot--fit">
					<div class="m-form__actions m-form__actions--solid">
						<div class="row">
							<div class="col m--align-left">
								<a class="btn btn-light-primary font-weight-bold mr-2 m-btn m-btn--custom m-btn--icon" href="javascript:addXtDataDictionary()">
									<span><i class="la la-plus la-lg"></i><span>新增一级</span></span>
								</a>
							</div>
							<div class="col m--align-right">
								<a class="btn btn-light-warning font-weight-bold mr-2 m-btn m-btn--custom m-btn--icon" href="javascript:initTreeTable()">
									<span><i class="fa fa-spin fa-refresh m-r-5"></i><span>刷 新</span></span>
								</a>
							</div>
						</div>
					</div>
				</div>
			</form>
			<!--end::Form-->
		</div>
		<table id="table"></table>
	</div>
	<!-- 数据字典新增页面模态框（Modal）开始 -->
	<div class="modal fade" id="addXtDataDictionaryModal" tabindex="-1" role="dialog" aria-labelledby="addXtDataDictionaryModalLabel" aria-hidden="true">
		<div class="modal-dialog modal-dialog-centered">
			<div class="modal-content">
				<div class="modal-header">
					<h4 class="modal-title">
						新增数据字典
					</h4>
				</div>
				<div class="modal-body" style='height:calc(100vh - 220px);overflow: auto;'>
					<form id="addXtDataDictionaryForm" class="m-form m-form--fit m-form--label-align-left m-form--group-seperator-dashed" method="post">
		                <div class="form-group">
		                    <label class="control-label">字典名称</label>
		                    <input class="form-control placeholder-no-fix" type="text" placeholder="请输入字典名称" data-bv-notempty data-bv-notempty-message="请输入字典名称" name="xt_data_dictionary_name"/> 
		                </div>
		                <div class="form-group">
		                    <label class="control-label">键&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;值</label>
		                    <input class="form-control placeholder-no-fix" type="hidden" placeholder="请输入键值" name="xt_data_dictionary_pid" id="xt_data_dictionary_pid"/> 
		                    <input class="form-control placeholder-no-fix" type="text" placeholder="请输入键值" data-bv-notempty data-bv-notempty-message="请输入键值"  name="xt_data_dictionary_value"/> 
		                </div>
		                <div class="form-group">
		                    <label class="control-label">状&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;态</label>
	                    	<select class="form-control" maxlength="32" name="xt_data_dictionary_state">
	                    		<option value="0">启用</option>
	                    		<option value="1">禁用</option>
	                    	</select>
		                </div>
		                <div class="form-group">
		                    <label class="control-label">排序编号</label>
		                    <input class="form-control placeholder-no-fix" type="text" value="0" data-bv-numeric data-bv-numeric-message="排序编号数字类型"  placeholder="请输入排序编号" data-bv-notempty data-bv-notempty-message="请输入排序编号"  name="xt_data_dictionary_soft"/> 
		                </div>
		                <div class="form-group">
		                    <label class="control-label">备注</label>
							<textarea class="form-control" cols="100" maxlength="200"  name="xt_data_dictionary_remark" placeholder="请输入备注"></textarea>		                    
		                </div>
	                </form>
				</div>
				<div class="modal-footer">
	                <button type="button" class="btn btn-secondary m-btn m-btn--custom m-btn--icon" data-dismiss="modal">取 消</button>
	                <button type="button" class="btn btn-light-primary font-weight-bold mr-2 m-btn m-btn--custom m-btn--icon" onclick="doAddXtDataDictionary()">提交更改</button>
	            </div>
			</div><!-- /.modal-content -->
		</div><!-- /.modal -->
	</div>
	<!-- 数据字典新增页面模态框（Modal）结束 -->
	
	<!-- 数据字典编辑页面模态框（Modal）开始 -->
	<div class="modal fade" id="updateXtDataDictionaryModal" tabindex="-1" role="dialog" aria-labelledby="updateXtDataDictionaryModalLabel" aria-hidden="true">
		<div class="modal-dialog modal-dialog-centered">
			<div class="modal-content">
				<div class="modal-header">
					<h4 class="modal-title" id="updateXtDataDictionaryModalLabel">
						编辑数据字典
					</h4>
				</div>
				<div class="modal-body" style='height:calc(100vh - 220px);overflow: auto;'>
					<form id="updateXtDataDictionaryForm" class="m-form m-form--fit m-form--label-align-left m-form--group-seperator-dashed" method="post">
		                <div class="form-group">
		                    <label class="control-label">字典名称</label>
		                    <input class="form-control placeholder-no-fix" type="hidden" placeholder="主键" name="xt_data_dictionary_id" id="xt_data_dictionary_id"/> 
		                    <input class="form-control placeholder-no-fix" type="text" placeholder="请输入字典名称" data-bv-notempty data-bv-notempty-message="请输入字典名称" name="xt_data_dictionary_name" id="xt_data_dictionary_name"/> 
		                </div>
		                <div class="form-group">
		                    <label class="control-label">键&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;值</label>
		                    <input class="form-control placeholder-no-fix" type="hidden" placeholder="请输入键值" name="xt_data_dictionary_pid" id="xt_data_dictionary_pid_"/> 
		                    <input class="form-control placeholder-no-fix" type="text" placeholder="请输入键值" data-bv-notempty data-bv-notempty-message="请输入键值"  name="xt_data_dictionary_value" id="xt_data_dictionary_value"/> 
		                </div>
		                <div class="form-group">
		                    <label class="control-label">状&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;态</label>
	                    	<select class="form-control" maxlength="32" id="xt_data_dictionary_state"  name="xt_data_dictionary_state">
	                    		<option value="0">启用</option>
	                    		<option value="1">禁用</option>
	                    	</select>
		                </div>
		                <div class="form-group">
		                    <label class="control-label">排序编号</label>
		                    <input class="form-control placeholder-no-fix" type="text" value="0" data-bv-numeric data-bv-numeric-message="排序编号数字类型"  placeholder="请输入排序编号" data-bv-notempty data-bv-notempty-message="请输入排序编号"  name="xt_data_dictionary_soft" id="xt_data_dictionary_soft"/> 
		                </div>
		                <div class="form-group">
		                    <label class="control-label">备注</label>
							<textarea class="form-control" cols="100" maxlength="200"  name="xt_data_dictionary_remark" placeholder="请输入备注" id="xt_data_dictionary_remark"></textarea>		                    
		                </div>
	                </form>
				</div>
				<div class="modal-footer">
	                <button type="button" class="btn btn-secondary m-btn m-btn--custom m-btn--icon" data-dismiss="modal">取 消</button>
	                <button type="button" class="btn btn-light-primary font-weight-bold mr-2 m-btn m-btn--custom m-btn--icon" onclick="doUpdateXtDataDictionary()">提交更改</button>
	            </div>
			</div><!-- /.modal-content -->
		</div><!-- /.modal -->
	</div>
	<!-- 数据字典编辑页面模态框（Modal）结束 -->
</body>
<link href="/deng/source/plugins/other/bootstrap-table-treegrid/css/bootstrap-table.css" rel="stylesheet">
<script type="text/javascript" src="/deng/include/include.js"></script>
<script type="text/javascript" src="/deng/source/plugins/other/bootstrap-table-treegrid/js/bootstrap-table.js"></script>
<script type="text/javascript" src="/deng/source/plugins/other/bootstrap-table-treegrid/js/bootstrap-table-zh-CN.js"></script>
<script type="text/javascript" src="/deng/source/plugins/other/bootstrap-table-treegrid/js/bootstrap-table-treegrid.js"></script>
<script type="text/javascript" src="/deng/source/plugins/other/bootstrap-table-treegrid/js/jquery.treegrid.min.js"></script>

<script type="text/javascript" src="/deng/view/sys/xt-data-dictionary/xt-data-dictionary-list.js"></script>
<script type="text/javascript" src="/deng/view/sys/xt-data-dictionary/xt-data-dictionary-add.js"></script>
<script type="text/javascript" src="/deng/view/sys/xt-data-dictionary/xt-data-dictionary-update.js"></script>
</html> 